/*
 * @Author: sonss
 * @Date: 2024-08-22 16:15:52
 * @LastEditTime: 2024-08-23 11:10:29
 * @FilePath: /ss-file-antd/src/services/upload.ts
 * @Description:  上传
 */

import { request } from '@umijs/max';

export async function Submit(data: FormData, options?: Record<string, any>) {
  return request<API.Result<UPLOADER.SubmitResponse>>('/v1/upload/submit', {
    method: 'POST',
    data,
    ...(options || {}),
  });
}
